//
//  ScanView.h
//  TengyunStation
//
//  Created by Johnny on 15/8/24.
//  Copyright (c) 2015年 xingrong. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol ScanViewDelegate <NSObject>

- (void)didFinishScanCode:(NSString *)code;

@end

@interface ScanView : UIView {
    UIImageView *_lineImageView;
    BOOL _isDownScroll;//判断是否向上滚动
    NSTimer *_timer;
    UIActivityIndicatorView *_activityView;
}

@property(nonatomic,strong)NSMutableArray *codeList;
@property(nonatomic,weak)IBOutlet id<ScanViewDelegate>delegate;

//- (void)setupCamera;
- (void)startScanning;
- (void)stopScanning;

@end
